import Taro, { Component } from '@tarojs/taro'
import { View, WebView, Text } from '@tarojs/components'


import './index.scss'



class Program extends Component {

  config = {
    navigationBarTitleText: '方案书',
  }

  componentDidMount() {

    const { name } = this.$router.params;
    Taro.setNavigationBarTitle({
      title: name
    })
  }
  render() {
    let sessionKey = Taro.getStorageSync('sessionKey');
    const { id } = this.$router.params,
      url = `http://huanlejiam.xhtol.com/program?id=${id}&mode=minapp&sessionKey=${sessionKey}`,
      url2 = "http://192.168.200.117:3000/?id=5c4035168ec2fb38b8499a3b";
    return (
      <View className='h-Program'>
        <WebView src={url}></WebView>
      </View>
    )
  }
}

export default Program
